package com.css.project.oa.fileInfo.domain;

import com.css.framework.aspectj.lang.annotation.Excel;
import com.css.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class SysFileInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long fileId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String name;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filePath;

    /** $column.columnComment */
    @Excel(name = "文件路径")
    private String fileSize;

    /** 业务表名 */
    @Excel(name = "业务表名")
    private String infoTable;

    /** 业务表主键 */
    @Excel(name = "业务表主键")
    private Long infoId;

    /** 上传人 */
    @Excel(name = "上传人")
    private String uploadUser;

    /** 上传时间 */
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadTime;

    //用于上传插件的字段
    private String fileName;
    private String size;

    public void setFileId(Long fileId)
    {
        this.fileId = fileId;
    }

    public Long getFileId()
    {
        return fileId;
    }

    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }

    public String getFilePath()
    {
        return filePath;
    }
    public void setFileSize(String fileSize)
    {
        this.fileSize = fileSize;
    }

    public String getFileSize()
    {
        return fileSize;
    }
    public void setInfoTable(String infoTable)
    {
        this.infoTable = infoTable;
    }

    public String getInfoTable()
    {
        return infoTable;
    }
    public void setInfoId(Long infoId)
    {
        this.infoId = infoId;
    }

    public Long getInfoId()
    {
        return infoId;
    }
    public void setUploadUser(String uploadUser)
    {
        this.uploadUser = uploadUser;
    }

    public String getUploadUser()
    {
        return uploadUser;
    }
    public void setUploadTime(Date uploadTime)
    {
        this.uploadTime = uploadTime;
    }

    public Date getUploadTime()
    {
        return uploadTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFileName() {
        return fileName;
    }

    public String getSize() {
        return size;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("fileId", getFileId())
                .append("fileName", getName())
                .append("filePath", getFilePath())
                .append("fileSize", getFileSize())
                .append("infoTable", getInfoTable())
                .append("infoId", getInfoId())
                .append("uploadUser", getUploadUser())
                .append("uploadTime", getUploadTime())
                .append("name", getName())
                .append("size", getFileSize())
                .toString();
    }
}
